<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./node_modules/react/umd/react.development.js"></script>
  <script src="./node_modules/react-dom/umd/react-dom.development.js"></script>
  <!-- 使用JSX语法 需要下载@babel/standalone -->
  <script src="./node_modules/@babel/standalone/babel.min.js"></script>
</head>
<body>
  <div id="root"></div>
</body>
</html>
<script type="text/babel"> //将type设置为text/babel 
  let item=<>
    <h2 className="title">中奖列表</h2>
    <ul className="list">
        <li>1.张三</li>
        <li>2.李四</li>
        <li>3.王五</li>
    </ul>
  </>
  // 创建根节点 也就是将dom元素获取到 在设置为挂载点
    let root=ReactDOM.createRoot(document.getElementById('root'))
    // 渲染到页面
    root.render(item)
</script>